import request from '@/utils/request'


// // 获得项目相关数据，无需传入参数，仅由于加载页面getAll
// export function getAllProject(){
//     return request({
//         url: "/projectAcceptance/getAllProject",
//         method: "post",
//     })
// }
export function searchProject(pageInfo,data){
    return request({
        url: "/projectAcceptance/searchProject/"+pageInfo,
        method: "post",
        data: data
    })
}

// 获得验收资料表中的相关信息
export function getAcceptance(data){
    return request({
        url:"/projectAcceptance/getAcceptance/" + data,
        method: "get"
    })
}


// 下载验收资料模板
export function downloadProject(){
    return request({
        url: "/projectAcceptance/downloadProject" ,
        responseType: 'arraybuffer',
        method: "get",
    })
}

// 删除验收资料
export function deleteProject(data){
    return request({
        url: "/projectAcceptance/deleteProject/" + data,
        method: "get",
    })
}

// 提交验收资料审批,需要返回一个验收资料提交状态accSubstatus
export function submitProject(data){
    return request({
        url: "/projectAcceptance/submitProject/" + data,
        method: "post",
    })
}
